package com.example.ormsqlsplicingframe1.orm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.example.ormsqlsplicingframe1.note.*;
import com.example.ormsqlsplicingframe1.orm.note.AddBatch;
import com.example.ormsqlsplicingframe1.orm.note.TableFieldKey;
import com.example.ormsqlsplicingframe1.orm.note.Title;
import com.example.ormsqlsplicingframe1.warpper.IntegrationImplementsWrapper;
import com.example.ormsqlsplicingframe1.warpper.IntegrationWrapper;
import com.example.ormsqlsplicingframe1.warpper.UpdateSqlWrapper;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Title(titleName = "ee_user ")
@Data
@JoinTransaction
public class SysUser  implements Serializable,IntegrationImplementsWrapper<SysUser> {

    @JoinFieldMajorKey
    private String id;

    @TableField("nick_name")
    private String nickName;


    @TableField("user_name")
    private String userName;

    @TableField("password")
    private String password;


    @TableField("create_time")
    @JoinDate
    private Date createTime;

    @TableField("update_time")
    @JoinDate(JoinDateEnum.UPDATE_TIME)
    private Date updateTime;

    @TableField("role_id")
    private List<Long> roleId;

    @JoinQuery(value = "roleId")
    @TableField(exist = false)
    private List<SysRole> sysRole;


}
